package com.asia5b.a5mall.middleware.config

import android.text.InputFilter
import android.widget.EditText

/**
 * Created by zhangyuncai on 2019/6/1.
 */
class GlobalValue {

    companion object {
        var isDebug = true
        var appType = 0 //0/1 测试/正式

        //短信验证码长度
        val smsCodeLength=4
        //图片验证码长度
        val imgCodeLength=4


        fun setLength(editText: EditText) {
            editText.filters = arrayOf(InputFilter.LengthFilter(imgCodeLength))
        }
    }
}
/*
注册号码 m_1110 15881111110
注册号码 m_15881111111 15881111111
....
注册号码 m_15881111134 15881111134
注册号码 "" 15889636951
注册号码 m_15889636952 15889636952

 */